-
Notifications
You must be signed in to change notification settings - Fork 336
chore: Add Storybook MVP #2366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Add Storybook MVP #2366
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
✅ Heimdall Review Status
|
Review Error for Joseph7400 @ 2025-05-22 06:08:31 UTC |
|
Review Error for Joseph7400 @ 2025-05-22 06:12:24 UTC |
Review Error for Joseph7400 @ 2025-05-22 09:55:48 UTC |
decorators: [ | ||
(Story) => ( | ||
<OnchainKitProvider | ||
apiKey={getApiKey()} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this instead of
process.env.NEXT_PUBLIC_ONCHAINKIT_API_KEY ?? undefined
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC Storybook didn't have access to process.env. This way we can set that up and things will still work.
Honestly, we should've just let it be undefined, but since this is the MVP setup for Storybook, this seemed fine for now.
What changed? Why?
Adds Storybook and a couple of demo stories to test out Chromatic and upcoming docs migration support.
Switches to Vite for bundling Tailwind which is required for styles to work in Storybook.
Notes to reviewers
How has it been tested?
Manually